package com.example.huadi1.service;

import com.example.huadi1.dto.Textbook;
import com.example.huadi1.utils.AjaxResult;
import com.example.huadi1.utils.Request.LoseRequest;
import com.example.huadi1.utils.Request.SinglePageRequest;
import org.springframework.stereotype.Component;

@Component
public interface TextbookService {
    AjaxResult queryTextbook(SinglePageRequest singlePageRequest);
    AjaxResult addTextbook(Textbook textbook);
    AjaxResult deleteTextbook(Textbook textbook);
    AjaxResult updateTextbook(Textbook textbook);
    AjaxResult findById(Textbook textbook);

    AjaxResult lose(LoseRequest loseRequest);
}
